package com.dawn.module.mp.controller.admin.msgtemplate.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.dawn.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.dawn.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 模板消息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MsgTemplatePageReqVO extends PageParam {

    @Schema(description = "appid", example = "12845")
    private String appid;

    @Schema(description = "微信公众号ID", example = "1930")
    private Long accountId;

    @Schema(description = "公众号模板ID", example = "8236")
    private String templateId;

    @Schema(description = "模版名称", example = "赵六")
    private String name;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "模板内容")
    private String content;

    @Schema(description = "消息内容")
    private JSONArray data;

    @Schema(description = "链接", example = "https://www.ynzykj.net")
    private String url;

    @Schema(description = "小程序信息")
    private JSONObject miniprogram;

    @Schema(description = "是否有效", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
